<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<
<%--
  Created by IntelliJ IDEA.
  User: LG93
  Date: 2017/8/10
  Time: 15:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="BASE" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>客户管理界面</title>
</head>
<body>
<h1>
    客户管理界面
</h1>
<font color="red" >${flag}</font>
<table>
    <tr>
        <td>客户名称</td>
        <td>联系人</td>
        <td>联系方式</td>
        <td>邮箱</td>
        <td>操作</td>
    </tr>

    <c:forEach items="${customerList}" var="customer">
        <tr>
            <td><a href="${BASE}/show?id = ${customer.id}">${customer.name}</a></td>
            <td>${customer.contact}</td>
            <td>${customer.telephone}</td>
            <td>${customer.email}</td>
            <td><a href="${BASE}/eidt?id = ${customer.id}">编辑</a>&nbsp;
                <a href="${BASE}/delete?id=${customer.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
